import { SEND_MSG} from '../actionTypes'
const initialState = {};

export default function(state = initialState, action) {
  switch (action.type) {
    case SEND_MSG: {

      state.newMsg = action.payload.msg
      
      return Object.assign({},state)
    }
    default:
      return state
  }
}
